<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page language="java" import="com.pro.bean.*"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<% List rs = (List)request.getAttribute("viewlist"); %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <meta charset="utf-8">
	<link href="css/bootstrap.css" rel="stylesheet">
	<link rel="stylesheet" href="css/main.css">
	<link rel="stylesheet" href="css/datepicker.css">
	
	<script src="js/jquery.js"></script>
	<script src="js/bootstrap.min.js"></script>
	<script src="js/bootstrap-datepicker.js"></script>
  </head>
  
  
  <body>
    <div id="tablediv" style="height: 300px">
			<table id="table" class="table table-bordered table-hover">
				<tr>
					<th>
					</th>
					<th>
						姓名
					</th>
					<th>
						所有者
					</th>
					<th>
						所有者部门
					</th>
					<th>
						公司
					</th>
					<th>
						部门
					</th>
					<th>
						详细信息
					</th>
				</tr>
				<%
				if(rs != null) 
					for(int i=0;i<rs.size();++i)
					{
						Card_View cv = (Card_View)rs.get(i);
						out.println("<tr>");
						out.println("<td><input id=\"ckbox\" class=\"chkbox\" type=\"checkbox\" value=\""
								+cv.getCardid()+"\" />");
						out.println("<td>"+cv.getFirstname()+"</td>");
					
						out.println("<td>"+cv.getUsername()+"</td>");
						out.println("<td>"+cv.getUnitname()+"</td>");
						out.println("<td>"+cv.getCmp()+"</td>");
						out.println("<td>"+cv.getDept()+"</td>");
						out.println("<td><a href=\"detail.jsp?cardid="
								+cv.getCardid()+"\"target=\"_blank\">详细信息</a></td>");
					}
				%>
			
			</table>
		</div>
		<br>
		<form action="<%=basePath%>servlet/showservlet" method="post">
		<div id="downdiv" style="float:right">
			<p>
				<button id="" style="margin-right" type="submit"
					class="btn btn-primary btn-sm">
					&nbsp;&nbsp;&nbsp;导出Excel&nbsp;&nbsp;&nbsp;
				</button>
			</p>
		</div>
		</form>
  </body>
</html>
